import {applyMiddleware, combineReducers, legacy_createStore as createStore} from "redux";
import {composeWithDevTools} from "redux-devtools-extension";
import myMiddleware from "./middleware/my_middleware";
import allReducer from "./reducer";

//const store = createStore(reducer, applyMiddleware(myMiddleware));
//const store = createStore(reducer, applyMiddleware(thunk));
// 开启redux devtools extension
const store = createStore(allReducer, composeWithDevTools(applyMiddleware(myMiddleware)));
console.log(store)
export default store;